package com.etl.dataflow.executor.connectivity.connector;


import com.etl.dataflow.common.entity.JdbcProperties;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 数据库连接器
 *
 * @author dx
 */
public interface Connector {
    /**
     * 获取数据库连接
     *
     * @param jdbcProperties   jdbc参数
     * @return  数据库连接
     */
    Connection getConnection(JdbcProperties jdbcProperties) throws SQLException;
}
